<div class="main-container col1-layout">
    <div class="main">
        <div class="col-main">
<?php
$this->breadcrumbs=array(
	'Goods'=>array('index'),
	$model->goods_id,
);
?>

<h1>View Goods #<?php echo $model->goods_id; ?></h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'goods_id',
		'goods_name',
		'goods_price',
		'goods_discount',
		'goods_type_id',
		'goods_type_name',
		'add_time',
		'goods_pictrues',
		'status',
		'average_score',
	),
)); ?>

<h1>Comments</h1>
<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'comments-grid',
	'dataProvider'=>$commentsProvider,
	'columns'=>array(
		array(
				'name'=>'User',
				'value'=>'User::model()->findByPk($data->user_id)->username'),
		'content',
		'score',
		array(
				'name'=>'add_time',
				'value'=>'date("Y-m-d H:i:s",$data->add_time)'),		
	),
)); ?>

</div>
</div>
</div>
